<script setup>
import { loginApi } from "@/api/user";

const login = async () => {
  let res = await loginApi({
    Account: "admin",
    Pwd: "0000",
  });
  console.log(res, "返回结果");
};

onMounted(() => {
  console.log("http 网络请求测试");

  login();

  // loginApi({
  //   userName: 'admin',
  //   password: 'admin123'
  // }).then((res) => {
  //   console.log(res)
  // })
});
</script>

<template>
  <h1>http 网络请求测试</h1>
</template>
